package com.xinzhi.savingpot.rminfo.controller;


import com.xinzhi.savingpot.rminfo.pojo.TitleVo;
import com.xinzhi.savingpot.rminfo.service.impl.TitleImpl;
import com.xinzhi.savingpot.util.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api
@RestController
@RequestMapping("/add")
public class TitleController {
    @Autowired
    TitleImpl title;

    @GetMapping("/addTitle")
    @ApiOperation("违规信息添加")
    public BaseResponse addTitle( TitleVo ti){

        return title.addRecordinfo(ti);
    }
}
